{extend name="public/base" /}
{block name="body"}
<section class="content-header">
  <h1>
    污染源管理
    <small>污染源列表</small>
  </h1>
  <ol class="breadcrumb">
    <li><a href="{:url('/')}"><i class="fa fa-dashboard"></i> 面板</a></li>
    <li class="active">污染源管理</li>
  </ol>
</section>
<section class="content">
    <div class="box">
        <div class="box-header">
	      <a href="{:url('add')}" class="btn btn-success"><i class="fa fa-plus"></i>添加污染源</a>
        </div>
        <!-- /.box-header -->
        <div class="box-body no-padding">
          <table class="table table-striped">
            <tbody>
            <tr>
              <th>ID</th>
              <th>污染源名称</th>
              <th>污染源位置</th>
              <th>流入河流</th>
              <th>流出河流</th>
              <th>操作</th>
            </tr>
            {volist name="list" id="item"}
            <tr>
              <td>{$item.id}</td>
              <td>{$item.name}</td>
              <td>{$item.location}</td>
              <td>{$item.inflow}</td>
              <td>{$item.outflow}</td>
              <td>
	              <a href="{:url('edit',['id'=>$item['id']])}" class="btn btn-info btn-xs"><i class="fa fa-edit"></i>编辑</a>
	              <a href="{:url('delete',['id'=>$item['id']])}" class="btn btn-danger btn-xs"><i class="fa fa-trash"></i>删除</a>
              </td>
            </tr>
            {/volist}

          </tbody></table>
        </div>
        <!-- /.box-body -->
      <div class="box-footer ">
         {$list->render()}
      </div>
        <!-- /.box-body -->
      </div>
</section>
{/block}
{block name="scripts"}{/block}